package com.duolebo.uteped_sdk.db;

import android.content.ContentValues;
import android.database.Cursor;

import java.util.ArrayList;

/**
 * IRecord
 */
public interface IRecord {
	
	String FIELD_TYPE_PRIMARY = " INTEGER PRIMARY KEY";
	String FIELD_TYPE_TEXT = " TEXT";
	String FIELD_TYPE_NUMERIC = " NUMERIC";
	String FIELD_TYPE_INTEGER = " INTEGER";
	String FIELD_TYPE_REAL = " REAL";
	String FIELD_TYPE_NONE = " NONE";
	
	String CONSTRAINT_UNIQUE = " UNIQUE";
	
	int NO_PKID = -1;

	long getPKIdValue();
	String getPKIdKey();
	void onModifyFieldValues();
	void writeFieldValues(ContentValues values);
	void readFieldValues(Cursor c);
	void prepareFieldDefs(ArrayList<String> fieldDefs);

}
